package evolutionaryballoons;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

public class BalloonTest {
	private Currents c;
	private Balloon b;
	private Points p;

	@Before
	public void setup() {
		c = new Currents();
		p = new Points();
		b = new Balloon(c, p);
	}
	
	@After
	public void cleanUp() {
		c = null;
		b = null;
	}
	
	@Test
	public void flyAway() {
		b.burnerOn = true;
		
		while (b.isInWorld()) {
			b.act();
			b.drift();
			b.writeLog();
		}
	}
	
	@Test
	public void dropDown() {
		while (b.isInWorld()) {
			b.act();
			b.drift();
			b.writeLog();
		}
	}
}
